import { superfluous } from "@/utils/superfluous";

const http = superfluous[9090];

/**
 * web登录
 * @param data 手机号、密码、图形码
 * @returns 账号信息
 */
export function WebAppLogin(data: UserLoginDto) {
  return http<UserLoginDto>("POST", "/WebApp/Login", data);
}

/**
 * 图形码获取
 */
export function WebAppCaptcha() {
  return http("GET", "/WebApp/Captcha");
}
